// import * as types from "./action-types"
// import Axios from "axios"
import axios from "../../../utils/axios"

// const setDetail = (title, content) => ({ type: types.SET_DETAIL, title, content })

export const getDetail = (id) => {
    return (dispatch) => {
        // Axios.get("/api/detail.json?id=" + id).then(res => {
        //     const { title } = res.data.data;
        //     const { content } = res.data.data;
        //     dispatch(setDetail(title, content))
        // })
        // , { skip: 0, limit: 30 }
        axios.get("http://localhost:9001/courses/findAllCourses?skip=0&limit=30").then(res => {
            console.log(res);

        }).catch(error => {
            console.log(error);

        })
        // .then(res => {
        //     console.log(res);

        // }, (error) => {
        //     console.log(error);

        // })
    }
}
